#ifndef RECODE_H
#define RECODE_H

#include <QMainWindow>
#include <QTcpSocket>
#include "login.h"
#include <uidesign.h>

#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonParseError>
#include <QJsonValue>
#include <QJsonValuePtr>
#include <QJsonValueRef>
#include <QJsonValueRefPtr>

namespace Ui {
class reCode;
}

class reCode : public QMainWindow
{
    Q_OBJECT

public:
    explicit reCode(QWidget *parent = 0);
    explicit reCode(QTcpSocket* s, QWidget *parent = nullptr);
    ~reCode();

private slots:
    void on_confirmButton_clicked();
    void recv();
    void on_backButton_clicked();

private:
    Ui::reCode *ui;
    QTcpSocket* sock;
signals:
    void mainclose();
};

#endif // RECODE_H
